export function diffTimes(target){
    //计算当前事件距离目标时间的时间间隔
    let current=new Date()
    let sub=Math.ceil((target-current)/1000)
    //通过时间间隔的秒数来计算小时、秒、分钟
    let seconds=sub%60
    let minuties=parseInt(sub%(60*60)/60)
    let hours=parseInt(sub%(60*60*24)/(60*60))
    return {hours,minuties,seconds}
}